<?php

declare (strict_types = 1);

namespace app\admin\controller;

use app\admincommon\controller\AdminController;
use think\facade\App;
use think\facade\Db;
use think\facade\View;

class Index extends AdminController{
    
    function index(){

        $admin = session('admin');

        return View::fetch();
        
    }


    function welcome(){


        $sysinfo = php_uname();
        $phpversion = phpversion();
        $mysqlversion = Db::query('SELECT VERSION() AS version')[0]['version'];
        $tpversion = App::version();


        return View::fetch("",[
            "sysinfo"=>$sysinfo,
            "phpversion"=>$phpversion,
            "mysqlversion"=>$mysqlversion,
            "tpversion"=>$tpversion
        ]);
    }


    
}




?>
